Exploring the synthesis, characterization, and corrosion inhibition of new tris-thiosemicarbazone derivatives for acidic steel settings using computational and experimental studies

A novel two tri-thiosemicarbazones derivatives, namely 2,2',2''-((2-Hydroxybenzene-1,3,5-triyl)tris(methanylylidene))tris(N-benzylhydrazine-1-carbothioamide) (HBC) and 2,2',2''-((2-hydroxybenzene-1,3,5-triyl) tris (methanylylidene)) tris (N-allylhydrazine-1-carbothioamide) (HAC), have been synthesized and their chemical structures were determined using different spectroscopic and analytical approaches. Then, utilizing methods including open circuit potential, potentiodynamic polarization, and electrochemical impedance spectroscopy, the inhibitory effect of the synthesized thiosemicarbazones on mild steel (MS) in an acidic environment (0.5 M H2SO4) was thoroughly investigated. Remarkably, raising the concentration of our recently synthesized tri-thiosemicarbazones HBC and HAC increased the inhibitory efficiency values. The η values of the two investigated tri-thiosemicarbazones derivatives (HAC and HBC), at each concentration are extremely high, and the maximum values of the efficiencies are 98.5% with HAC and 98.8% with HBC at the 800 ppm. The inhibitors adsorbed on the mild steel surface and generated a charge and mass movement barrier that protected the metal from hostile ions. According to polarization curves, HBC and HAC act as mixed-type inhibitors. Electrochemical impedance testing revealed a notable rise in charge transfer resistance (Rct) readings to 4930-Ω cm2, alongside a reduction in the Constant Phase Element (CPE) value to 5.81 μF, suggesting increased effectiveness in preventing corrosion. Also, density functional theory (DFT) was applied to investigate the assembled tri-thiosemicarbazones HBC and HAC. Moreover, the adsorption mechanism of HBC and HAC on the mild steel surface was explored using Monte Carlo simulation. Finally, the theoretical outputs were discovered to support the practical outcomes.


Electrochemical measurements
All electrochemical measurements were achieved with Versa STAT 4 and the Versa Studio electrochemistry software suite.The working electrode was rubbed with emery sheets of various grades up to 2000 grit.As counter and reference electrodes, platinum wire and saturated calomel electrodes were used.Before beginning any experiment, the steel electrode was allowed to reach steady-state potential.The scan rate for the potentiodynamic polarization technique is 5 mV/sec.In electrochemical impedance spectroscopy (EIS) studies, the frequency ranges 100 kHz to 100 MHz are used.

Computational details
The geometries of the HAC and HBC molecules were constructed using the sketching tools in Gaussview 6 software 27 .Their structural parameters (bond length, bond angle and dihedral angle) in the gas and aqueous forms were optimized to the minimum energy using Gaussian 09 software package 28 .The optimization methods used the Lee-Yang-Parr correlation functional and Becke-style 3-Parameter density Functional Theory (DFT-B3LYP) at 6-31G(d,p) basis set, which had a tolerable processing cost, less time and high accuracy 29,30 .The optimization processes were also done using DMol 3 module implemented in Materials studio software 31 at local spin density approximation using the Perdew-Wang correlation function (LDA and PWC), (DND 4.4) Basis Set and COSMO control for water as solvent 32 .The occurrence of HAC and HBC molecules on steel surface was simulated by Molecular dynamics (MD) and Monte Carlo (MC) simulations using Forcite dynamic and adsorption locator modules in absence and presence of the corrosive environment (200 H 2 O/20 H3O + /10 www.nature.com/scientificreports/SO 4 --).For this purpose, Fe (110) slab with a dimension of 24.82Å × 24.82Å × 48.24 Å was used to simulate steel.Molecular dynamics (MD) was done by using Nose thermostat where the temperature was set at 298 K.A NVT ensemble with simulation time of 50 ps is chosen where the time step of 1 fs.The energy was performed using COMPASS II as the force field.

Institutional review board statement
All procedures were performed in accordance with the Guidelines for Care and Use of Laboratory of Benha University and approved by the Ethics Committee of faculty of science (BUFS-REC-2024-132 chm).

Synthesis and characterization
We began our investigation by synthesizing 2-hydroxybenzene-1,3,5-tricarbaldehyde (1) employing the published method 33 with some modifications.The sonication of the commercially available phenol (1.0 equiv) and 1,3,5-trioxane (5.0 equiv) in trifluoroacetic acid (TFA) was demonstrated to be capable of introducing three aldehydic groups into the phenol molecule in a one-step procedure.In comparison with the published methods 33 , the present protocol afforded the desired tricarbaldehyde (1) quantitatively in a short reaction period.Subsequently, the trialdehyde derivative (1) has been then subject to condensation reactions with thiosemicarbazde derivatives (2a,b) under different conditions.After several trials, the optimum conditions for this condensation reaction were specified as follows: a mixture of 3.0 mmol of tricarbaldehyde (1) and 3.0 mmol of thiosemicarbazides (2a,b) in 20.0 mL EtOH was sonicated (80%) at 65 °C for 30 min.The targeted derivatives (3a,b) were obtained in quantitative yields (95 and 98%, Fig. 1).The proposed structures of the targeted derivatives were confirmed via several spectroscopic methods (NMR, and FT-IR,) (cf.Figs. 2, 3).For example, Fourier transform infrared (FT-IR) spectra of the four condensed derivatives approved the disappearance of distinctive signals belonging to the aldehydic carbonyl groups.The broadness of OH bands between 3346 cm and 3001 cm −1 indicates the stretching mode of hydroxyl and NH groups.Furthermore, the typical sharp band at 1611 cm −1 is assigned to the stretching vibration of the allylic double bond of derivative 3b.Further, the bands recorded around 1500 cm −1 is due to the vibrational mode of the aromatic C=C bonds and the newly formed C=N bonds.Moreover, the 1 H NMR of these derivatives (3a,b) revealed characteristic singlets around δ 8.7 ppm attributed to the methine proton.Interestingly, these relatively high values of methine protons indicating the stereoselectivity of the present reaction; the

Open circuit potential (OCP)
In the absence and presence of various concentrations of tri-thiosemicarbazone derivatives (HBC and HAC), the open circuit potential vs. time curves for MS in 0.5 M H 2 SO 4 are shown in Fig. 4. A thorough examination of OCP vs. time curves indicates that the steady-state potential shifts negatively in the presence of HBC and HAC.As the concentration of HBC and HAC increases, the OCP becomes more negative.The contradicting variations of the curves in proportion to uninhibited MS revealed that the cathodic reaction was dominant.The properties of the curled sample are markedly different from those of the unrestricted sample.For MS electrode, the OCP curves were practically straight, indicating that steady-state potential had been reached 35,36 .

Potentiodynamic polarization (PDP)
The potentiodynamic polarization (PDP) curves of MS were carried out after holding the alloys at the opencircuit potential in stagnant naturally aerated 0.5 M H 2 SO 4 in inhibitors free and inhibitors containing solutions (100-800 ppm).Figure 5 presents the results of the effect of tri-thiosemicarbazones derivatives concentrations on cathodic and anodic polarization curves of MS in 0.5 M H 2 SO 4 at 303 K.The corrosion current density, i corr , corrosion potential, E corr , surface coverage, θ, inhibition efficiency, η, anodic Tafel slopes, βa, and cathodic Tafel slopes, β c , were calculated using PDP data and presented in Table 1.The curves showed that the synthesized tri-thiosemicarbazone derivatives (HBC and HAC) are very effective inhibitors for the MS corrosion.When the effect of the two inhibitors compared to each other at 800 ppm, it was noticed that HBC is more effective on the MS surface than HAC inhibitor (Fig. 5).The polarization curves shift directly to lower current densities as HBC and HAC concentrations are increased, dramatically slowing the rate at which MS corrodes.The fact that each curve in Fig. 5 is parallel to the others shows that the addition of the HBC and HAC has no effect on the mechanism of reactions, and that the corrosion processes can be controlled simply by limiting the rates of reactions 37,38 .The values displayed in Table 1 indicated that i corr decreases sharply from 2326 μA cm −2 (for the uninhibited tested media) to 34.39 μA cm −2 (with 800 ppm of HAC) and 28.26 μA cm −2 (with 800 ppm of HBC).The values also suggest that HAC and HBC adsorb on the metal surface, which suppresses the dissolution of www.nature.com/scientificreports/metals as well as reduction processes 39 .Additionally, it has been noted that the addition of HAC and HBC to the corrosive solution has altered the E corr values of the non-inhibitor systems.At 100 ppm, the attained efficiency ranged from 63.16% (HAC) and 75.86% (HBC) to its maximum value of 98.5% (HAC) and 98.8% (HBC) at 800 ppm within the concentration range of our research.The high inhibition efficacy of the HAC and HBC molecules can be explained by the existence of benzene rings, double bonds, and hydroxyl group in addition to the presence of N, O and S atoms 40 .The provided inhibitor's structure and concentration affect the values of the corrosion inhibition efficiency, and surface coverage.Using the following equations, the percentage inhibition efficiency (η %) and the degree of surface covering (θ) were calculated 41,42 : where i o corr and i corr are the corrosion current densities in the absence and presence of the inhibitor, respectively.It can be seen that the values of the inhibition efficiencies calculated from i corr rise with rising concentration of HBC and HAC.The η % values of HAC and HBC, at each concentration are extremely high, and the maximum values of the efficiencies are 98.5% with HAC and 98.8% with HBC at the 800 ppm within the concentration range of our research.
Several papers have demonstrated that the ΔE corr value can also be used to determine the corrosion inhibition effect.If the change in E corr is > 85 mV or < − 85 mV with regard to the E corr of the blank solution, the inhibitor compounds can be categorized as anodic or cathodic type inhibitors respectively.When the change in E corr is < 85 mV, the chemical inhibitor can be classified as a mixed type 43,44 .The largest displacement displayed by HBC or HAC in the current investigation is ~ 16 mV (see Table 1), leading to conclude that these compounds performed as mixed-type inhibitors.As a result, the anodic dissolution of MS was reduced and the cathodic reaction of H 2 (   evolution was delayed when HBC or HAC were added to the 0.5 M H 2 SO 4 electrolyte.These substances can also serve as a physical barrier to stop the diffusion of corrosive species to the mild steel electrode's surface.Also, the shift of βa and β c indicate that the metal dissolution processes (Fe → Fe ++ + 2e − ) as well as the hydrogen evolution (2H + + 2e − → H 2 ) is suppressed by the adsorption of HBC and HAC.Therefore, it confirms that HBC and HAC act as mixed-type corrosion inhibitors which suppress both anodic and cathodic reaction by adsorbing on the MS surface 45 .Tri-thiosemicarbazone derivatives (HBC and HAC) may interact with the d-orbitals of Fe atoms through the interaction of hetero atoms in the HBC and HAC structure that have unshared electron pairs with the steel surface in 0.5M H 2 SO 4 solution.Since the electron configuration of Fe was [Ar] 4s 2 3d 6 , it is obvious that the electrons in the third orbit were not completely filled.While the filled 4s orbital might interact with the lowest unoccupied molecular orbital of the HBC and HAC, this unfilled iron orbital may bond with the highest occupied molecular orbital of the thiosemicarbazone molecule 46 .

Electrochemical impedance measurements, EIS
EIS is a highly effective method for determining rate of corrosion, due to utilization of a modest ac signal without substantially altering the attributes being recorded or the electrode surface morphology.Additionally, it is feasible to replicate the experimental impedance data using pure electronic models, which can be used to test or validate mechanistic models and to calculate numerical values corresponding to the physical and/or chemical properties of the electrochemical system 47,48 .The results of the EIS measurements obtained with the MS electrode immersed in 0.5 M H 2 SO 4 in absence and presence of (100-800 ppm) of HAC and HBC inhibitors are presented in Fig. 6 in the form of Bode and Nyquist plots.The presence of a depressed capacitive loop at intermediate frequencies and a single semicircle are the main characteristics of the Nyquist plot.This behavior shows that the corrosion process is under charge transfer control and is related to a single time constant that includes relaxation effects from adsorption events 49,50 .Relaxation processes take place at certain frequencies in the interfacial phenomena governed by diffusion.In an electrochemical system, the characteristic constant of a relaxation process within the time domain is called the relaxation time (τ dl ), which is defined as the time required for the charge distribution to return to its equilibrium state.This term is frequently used to differentiate between polarization effects that can be attributed to physical processes that underlie the frequency domain overlap 51 .With a rising inhibitor concentrations, the τ dl values increased in the presence of HAC and HBC (Table 2), indicating a slower process of electric charge and discharge at the metal-solution interface because there are more macromolecules adsorbed on the metallic surface 52 .The relaxation of the double layer capacitance is typically connected with the semicircle at high frequencies, and the diameter of this semicircle denotes the charge-transfer resistance. 53,54.The diameter of the capacitive loop increases after the addition of the investigated inhibitor (HAC and HBC) to the corrosive medium, indicating that the addition of HAC and HBC in the corrosive solution suppresses the corrosion process by blocking the active corrosion centers and flawed or fragile regions by the adsorption of its molecules on the metal surface.The dispersion formula was used to examine the entire set of impedance data using software that came with the electrochemical workstation.On the MS surface, it was discovered that HBC is more efficient than HBC.The data are well-aligned with those from potentiodynamic polarization measurements.Several impedance parameters were calculated using equivalent circuit shown in Fig. 6 and listed in Table 2.The values of R ct were given by subtracting the high frequency impedance from the low frequency one as follows 55 : R ct = Z re (at low frequency) − Z re (at high frequency).Increasing the value of R ct from (184.6 Ω cm 2 ) to (4582 and 4930 Ω cm 2 for HAC and HBC, respectively) and decreasing the value of double layer capacitance (C dl ) by increasing the inhibitor concentration indicate that HAC and HBC inhibit corrosion rate of MS in 0.5 M H 2 SO 4 by adsorption mechanism 56 .At Low-frequency regions (0.01 Hz), as those in the bode plots (Fig. 6), were linked to polarization resistance or charge transfer, and the impedance (|Z| 0.01 ) might be an indicator of inhibitory strength 57 .With every increase in HAC and HBC concentrations, the corrosion reaction is slowed down by an increase in |Z| 0.01

58
. The insertion of HAC and HBC molecules causes the slopes of bode lines in the middle-frequency band to shift near -1 (pure capacitor), which suggests that the corrosion system's capacitive behavior is becoming more pronounced 59 .Additionally, the height of the peak grew with increasing HAC and HBC concentrations, and all Bode-phase angle curves exhibited a single time constant, indicating a stronger response from HAC and HBC adsorption in the steel/H 2 SO 4 interface 60 .The data obtained from EIS are in a good agreement with aforementioned results of potentiodynamic polarization measurements.

Adsorption isotherm
By locating an appropriate isotherm, the adsorption performance of tri-thiosemicarbazone derivatives (HAC and HBC) on the MS surface may be understood.Numerous numerical relations (Freundlich, Langmuir, Temkin, and kinetic-thermodynamic) for the adsorption isotherms were devised and displayed in Fig. 7 to fit the exploratory results of EIS and PDP tests.The data collected in Table 3 show that Langmuir isotherm equation fits our results according to R 2 values.In Langmuir isotherm equation, the equilibrium constant (K) of the adsorption process and the adsorbate concentration (C) are related as C/θ = 1/K + C 61 .Also, K is linked to the standard free energy of adsorption, ∆G o ads , by the equation 62 : K = 1/10 6 exp (− ∆G o ads /RT), where T stands for the absolute temperature and R for the ideal gas constant while the value 10 6 is the concentration of water in ppm.Using EIS data, the standard adsorption free energies are equal to −28.56 and −29.45 kJ mol −1 for HAC and HBC respectively.The negative sign of ∆G o ads indicates the spontaneous nature of the adsorption process of HAC and HBC on MS surface 63 .The obtained value of ∆G o ads suggests a physical adsorption process.

Reactivity descriptors
After DFT-631G(d,p) and DMol 3 computations for HAC and HBC molecules, snapshots for the optimized structures, HOMO, LUMO, MEP and Mulliken charges were extracted as shown in Fig. 8 and the extracted quantum parameter are collected in Table 4.The two molecules have a similar skeleton except the terminal groups as -CH=CH 2 for HAC and benzene moieties for HBC.HAC and HBC structures are roughly planner with a slight difference for the terminal aromatic moieties in case of HBC molecule.This approximate planner geometry with severally distributed active sites may guarantee large surface coverage of steel and enhanced protection.Based on Mulliken atomic charges (MAC), The highly negatively charged atoms are expected to adsorb on steel surface via electron donation and/or electrostatic attraction 64,65 .MAC diagrams in Fig. 8 show several negatively charged atoms like N, O, S and C atoms.The three azomethane nitrogen atoms (C=N) C 16 , C 19 and C 22 showed the highest negative charges with values ranged from −0.5468 to −0.5505 e followed by the phenolic oxygens of the central aromatic moieties by the value of −0.5214 e followed by the diazines nitrogen's (N-N) with the values ranged from −0.3627 e to −0.4087 e and the sulfur atoms of C=S groups (S 23 , S 24 and S 25 ) by values ranged from −0.2972 e to −0.3089 e at the 631-G(d,p) basis set.The summation of MAC (TNC) is higher for MBC molecule than HAC molecule to confirm the priority of HBC molecule in electron donation and/or electrostatic attraction and so steel surface protection.Figure 8 also, showed the www.nature.com/scientificreports/molecular electrostatic potential (MEP) map which divide the HAC and HBC molecules into through main regions; low potential (red spots), moderate potential (yellow or green spots) and high potential sections (blue spots), which correspond to electron-rich (where the steel prefers to bind), electron-moderate and electronpoor regions, respectively 66 .It is important to keep in mind that the quantity of electrophile and nucleophile sites is not always a good indicator of the molecule's overall reactivity, but it does point to potential places of enhanced steel interactions 67 .MEP of HAC and HAB molecules showed extremely electron-rich region around the central aromatic moiety and phenolic oxygen then the sulfur atoms and the nitrogen atoms while the blue region are around the hydrogens attached to the nitrogen atoms of the diazene's and the moderate-electrons regions (green) are around the terminal groups either benzene moieties or -CH=CH 2 groups.The graphical  representations of the frontiers molecular orbitals (FMO) either the electron donating orbitals (HOMO) or the electron accepting orbitals (LUMO) for HAC and HBC molecules are shown in Fig. 8.Chemical reactivity and so the adsorption ability between the HAC or HBC molecules and steel is a function of the donating power of HOMO orbitals to the empty d-orbitals in steel 68 .HOMO orbitals are mostly distributed on large areas of HAC and HBC molecules including the central aromatic moieties, phenolic oxygen, sulfur atoms and the nitrogen atoms.These active sites can share their electrons with steel forming a stable and coherent protective layer from corrosion 69 .A quantitative analysis of E HOMO values in Table 4, revealed that HBC possesses higher E HOMO values than HAC molecule either in DFT-631-G data or DMol 3 data.This suggests that the electron donating power of HBC molecule is higher than HAC molecule 70 .Also, the calculated molecular volume of HBC molecule is higher than HAC molecule which guarantee that a single HBC molecule will occupy more surface area on steel surface and higher corrosion protection 71 .
The reactivity of the organic molecules (HAC and HBC) towards the steel metallic surface enhanced by the reduction of the energy gap between HOMO and LUMO (ΔE = E LUMO − E HOMO ) 72 .Low ΔE values of HAC and HBC molecules (Table 4) suggest high reactivity and enhance protection.The binding of HAC and HBC molecule to steel surface can be enhanced by the electron retro donation as indicated from positive values of hardness (η) and negative values of ΔE back-donation 73 .The relationship between dipole moment (μ) and the efficiency is very favorable since the buildup and accumulation of HAC and HBC on the metallic surface is more advantageous by large μ values 74 .The μ values of HBC are higher than that of HAC, which confirms the predominance of HBC in protection efficiency.Also, electronegativity (χ) of HBC molecules is lower than HAC molecule which indicate lower electron attracting ability and higher protection for HBC molecule 75 .The tendency of electrons for following from HAC and HBC molecules to steel surface (∆N) was calculated to confirm the ability of the studied www.nature.com/scientificreports/compounds to donate electrons to the steel empty orbitals 76 .Also, the electron donating power (ω −) values are higher than electron receiving power (ω +) for both HAC and HBC molecules as indication of the electron follow from the organic molecules to the steel surface is the favorable mode.The Natural bond orbitals (NBOs) were done to determine which atoms or groups in HAC or HBC HOMO possess the priority in sharing electrons to the vacant d-orbitals of steel 77 .The orbital hybridization pattern for the proposed locations of interactions of HAC and HBC molecules are listed in Table 5, accompanied by the appropriate eigenvalues in eV (ordered by the priority of electron donating capacity).The supplementary Tables S1and  The reactivity of individual atoms for donating or accepting electrons were estimated from Fukui functions ( f + and f − ).It is calculated from finite difference between neutral, cationic and anionic forms 78 .In case of HAC, the highest values of f − (Table 6) were attributed to the hetero atoms firstly sulfur atoms S 23 , S 24 and S 25 then the nitrogen atoms and phenolic oxygen atom as the most active sites for electron sharing with the metallic surface.A close situation is obtained for HBC molecule.So, the most effective active sites for HAC and HBC molecules to engage with steel surfaces and create bonds are the lone electron pairs found on most heteroatoms 79 .

Molecular dynamics and Monte Carlo simulations
The previously discussed data focused on the HAC and HBC molecules themselves but their adsorption on steel surface was investigated via MC and MD simulations.Details about how HAC and HBC molecules interact with the surface of steel in the aggressive solution can be provided via MC and MD modeling 80,81 .For MC calculations, the different forms of energies like electrostatic, Van der Waals, intramolecular, average and total energies during the optimization process of (HAC-H + and HBC-H + /200H 2 O/19 H3O + /10 SO 4 --) systems onto the Fe (110) surface were calculated as shown in Figure S1.For MD calculations, the most stable adsorption sites of (HAC-H + and HBC-H + /Fe (110) were discovered via the examination of T (K) fluctuations Figure S2 shows how little T(K) variation there is, indicating that the MD calculations in our system were done effectively 82 .Figure 9  --ions), the HAC-H + and HBC-H + molecule have a substantially larger E ads distribution.The E ads distribution in Fig. 9 shows that ) on Fe (1 1 0) surface, side, and top view as obtained from MC and MD simulations are collected in Fig. 10.The HAC-H + and Table 6.condensed Fukui functions for local reactivities in HAC and HBC molecules calculated by DMol3 method.

Gas phase
Aqueous phase Gas phase Aqueous phase www.nature.com/scientificreports/HBC-H + orientation during adsorption on the steel surface is obviously flat, which suggests that the steel surface and the active sites in the HAC-H + and HBC-H + molecules interact strongly with maximum surface coverage 84 .
The hetero atoms (S, N, O) lone pairs, double bonds (C=S, C=N, C=C) and the aromatic moieties tightly held the HAC-H + and HBC-H + molecules to the surface and shield the other corrosive ions from interaction with steel 85 .
The MC adsorption and binding energies are shown in Table 7.For the gas or aqueous phase adsorption, HAC and HBC molecules are listed in order of their effectiveness as inhibitors: HBC (neutral or protonated) > HAC (neutral or protonated).The extra high values of binding energies demonstrates the excellent effectiveness of HAC and HBC molecules in preventing corrosion in steel 86 .The bond length between the hetero atoms (N, S) of HAC and HBC molecules and steel surface were examined using radial distribution functions (RDF) 87,88 as shown in Fig. 11.The type of adsorption mode can be indicated by peaks in the RDF graph that appear at definite distances from steel surface.For physisorption, the RDF peaks are expected to be present at distances higher than 3.5 Å, but the chemisorption process is implicated when the peak is present between 1 and 3.5 Å 59,89 .RDF peak positions for the S and N atoms are found at values less than 3.5 Å as indication of chemisorption and HBC molecule is slightly close to surface than HAC molecule.

Inhibition mechanism
The synthesized organic inhibitors HAC and HBC exhibited promising corrosion inhibition properties.The adsorption process, influenced by various factors such as the chemical structure of inhibitors, plays a crucial role in the inhibitory mechanism of corrosion inhibitors.As illustrated in Fig. 12, the proposed adsorption mechanism of HBC on the mild steel surface involves both donation and back donation.The protonated sites of the organic inhibitors are thought to physically adsorb at negatively charged sites on Cl -ions, preventing corrosive ) system via MC simulation.
ions from attacking the steel alloy surface and causing dissolution.Key components of Tri-thiosemicarbazone derivatives (HAC and HBC) as corrosion inhibitors include the presence of pi electrons in aromatic rings and other functional groups that interact with the metal surface by donating electrons.These substances can also act as a physical barrier, halting the diffusion of corrosive species to the surface of the mild steel electrode.As a result, back donation from the metal surface to the acceptor sites reduces electron repulsion on the CS surface.www.nature.com/scientificreports/ between the steel surface and the active sites in the HAC-H + and HBC-H + molecules, resulting in maximum surface coverage.
The HBC and HAC inhibitors assessed in comparison to other thiosemicarbazones inhibitors in literature, considering their structural features, concentration, and effectiveness in inhibiting a specific process.Furthermore, Table 8 provides data regarding thiosemicarbazones inhibitors reported in literature with structural similarities to HBC and HAC, along with their respective inhibition efficiencies.The inhibition efficiency of HBC and HAC against mild steel alloy corrosion was found to be comparable to, and in some instances even superior to, several other inhibitors [24][25][26] .The HBC and HAC inhibitors in this study demonstrated higher efficiency (96.26% and 95.97%) compared to the previously listed organic inhibitors (91.8%, 93.2%, 92.8%, 94.3%, 92.5%, 93.7%, 94.1% and 94.3%).These findings suggest that this recent research serves as a logical progression of the study on organic inhibitors.

Conclusion
The prepared HAC and HBC compounds worked high effectively as inhibitors of MS corrosion in 1 M HCl, with the effectiveness of HAC and HBC inhibition efficiencies rising with increase in their amount in the corrosive solution.They classified as mixed-type, and Langmuir's isotherm is followed during adsorption.The study's negative ΔG ads results show that spontaneous adsorption has occurred on the steel surface.The results of the DFT computation demonstrate that they had the ability to transfer electrons to the metal's surface.The MD and MC simulations show that the inhibitors have very flat surface adsorption geometries.This feature causes the adsorption centers of the inhibitor to be brought to the MS surface.

Figure 1 .
Figure 1.An ultrasound-assisted protocol for the synthesis of the (HAC and HBC).

Figure 2 .
Figure 2. The FTIR spectrum (a), and 1 H NMR spectrum spectra of HBC compound.

Figure 3 .
Figure 3.The FTIR spectrum (a), and 1 H NMR spectrum spectra of HAC compound.

Figure 5 .
Figure 5. Potentiodynamic polarization curves for the corrosion of Steel in 0.5 M H 2 SO 4 in absence and presence of different concentrations of HAC and HBC compound at 303 K.

Figure 6 .
Figure 6.Nyquist, Bode plots and equivalent circuit for steel dissolution in 0.5 M H 2 SO 4 in the absence and presence of different concentrations of the HAC and HBC inhibitors at 303 K.

Figure 7 .
Figure 7.The different adsorption models for HAC and HBC compounds on the steel surface in 0.5 M H 2 SO 4 using electrochemical impedance spectroscopy data at 303 K.

Figure 8 .
Figure 8. Graphical representation of the optimized molecular structures, highest occupied molecular orbitals (HOMO), lowest unoccupied molecular orbitals (LUMO), molecular electrostatic potential map (MEP), and Mulliken atomic charges (MAC) of HAC and HBC molecules from B3LYP calculations.

Figure 11 .
Figure 11.RDF of the O, N and S heteroatoms for HAC and HBC inhibitors/Fe (110), obtained via MD.

Figure 12 .
Figure 12.Possible adsorption mechanism of inhibitor (HBC) on mild steel alloy surface in 0.5 M H 2 SO 4 .

Table 1 .
Electrochemical parameters for steel dissolution in 0.5 M H 2 SO 4 solution containing different concentrations of the (HAC and HBC) inhibitors obtained from polarization measurements at 303 K. E corr is the corrosion potential; i corr is the corrosion current density: β a and β c are Tafel constants for both anode and cathode; k is the corrosion rate; θ is the surface coverage; η PDP is the inhibition efficiency.

Table 2 .
Electrochemical parameters calculated from EIS measurements on mild steel electrode in 0.5 H 2 SO 4 solutions without and with various concentrations of (HAC, HBC) at 303K.R s solution resistance, R ct charge transfer resistant, Y 0 , n constant phase elements, C dl double layer capacitance, θ surface coverage, η z inhibition efficiency.

Table 3 .
Adsorption isotherms models of the inhibitors with values of R 2 , slopes, intercepts, and thermodynamic parameters (K ads and ΔG o ads ,) by using data obtained from EIS measurements.

Table 4 .
The calculated quantum chemical parameters in eV for the neutral and protonated inhibitors at DFT-631G(d,p) and DMol 3 in gas phase and in aqueous phase.

Table 5 .
83Os at expected inhibitor-metal interactions ordered according to their energies (highest to lowest).HAC-H + and HBC-H + molecules may progressively replace the adsorbed H 3 O + ions, SO 4 --ions, and H 2 O molecules from the steel surface83.The most stable equilibrium configuration for (HAC-H + and HBC-H + /200 H 2 O/19 H 3 O + /10 SO 4 the

Table 7 .
the outputs and descriptors calculated by the Monte Carlo simulations for adsorption of HAC and HBC on Fe (110) (in kcal/ mol).

Table 8 .
Comparison of the inhibitory effectiveness obtained from EIS of several inhibitors used for different mild steel corrosion in various environments.